package com.springbootcrud.user.dao;

import com.github.pagehelper.PageInfo;
import com.springbootcrud.user.controller.CrudController;
import com.springbootcrud.user.entity.Crud;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Sun on 2020/4/10.
 */
@Mapper
public interface CrudDao {
    //查询虽有数据
    List<CrudController> getAll(@Param("content") Map map);
    //根据Id进行删除
    void delete(Integer id);
    //新增用户信息
    void sava(Crud crud);
    //修改,先根据id实现页面数据回显
    Crud getById(Integer id);
    //将修改的数据保存进数据库
    void saveCrud(Crud crud);
    //分页
    List<Crud> queryUserInfo();

}
